#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

void fc(char fname[], char ch[])
{ FILE *fp;
int i;
fp = fopen(fname, "a");
for (i = 0; i < strlen(ch); i++)
	fputc(ch[i], fp); 
fclose(fp); 
};
int main() 
{ fc("f2.txt", "very"); 
fc("f2.txt", "good");
return 0; }